package cn.gbase.jiangsu.data.transfer.bean;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import cn.gbase.jiangsu.data.transfer.validation.annotation.Validations;

/**
 * 社区.
 * 
 */
@Table("community")
public class Community extends BaseDto {

	/**
	 * ID.
	 */
	@Column
	@Id
	private int id;

	/**
	 * 社区名称.
	 */
	@Column("community_name")
	@Validations(required = true, strLen = { 1, 100 }, errorMsg = "社区名称应为1-100个字符。")
	private String communityName;

	/**
	 * 社区编码.
	 */
	@Column("community_code")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "社区编码应为1-30个字符。")
	private String communityCode;

	/**
	 * 地址.
	 */
	@Column("address")
	@Validations(required = false, strLen = { 0, 100 }, errorMsg = "地址应为1-100个字符。")
	private String address;

	/**
	 * 区域ID.
	 */
	@Column("area_id")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "区域应为1-30个字符。")
	private String areaId;

	/**
	 * 街道.
	 */
	@Column("street")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "街道应为1-30个字符。")
	private String street;

	/**
	 * 邮编.
	 */
	@Column("postcode")
	@Validations(required = false, strLen = { 0, 10 }, errorMsg = "邮编应为1-10个字符。")
	private String postCode;

	/**
	 * 开发商.
	 */
	@Column("developer_id")
	private Integer developerId;

	/**
	 * 楼的数量.
	 */
	@Column("building_number")
	private int buildingNumber;

	/**
	 * 停车位的数量.
	 */
	@Column("parking_number")
	private int parkingNumber;

	/**
	 * 社区类型：1住宅小区，2校区，3写字楼.
	 */
	@Column("community_type")
	private int communityType;

	public int getCommunityType() {
		return communityType;
	}

	public void setCommunityType(int communityType) {
		this.communityType = communityType;
	}

	/**
	 * 备注.
	 */
	@Column
	private String remark;

	/**
	 * 创建时间.
	 */
	@Column("create_date")
	private Date addtime;

	/**
	 * 每消费一百元给多少积分.
	 */
	@Column("point_percent")
	private int pointPercent;

	public int getPointPercent() {
		return pointPercent;
	}

	public void setPointPercent(int pointPercent) {
		this.pointPercent = pointPercent;
	}

	/**
	 * 创建人.
	 */
	@Column("create_user")
	private String createUser;

	@Column("allow_one_room_multi_user")
	private int allowOneRoomMultiUser;

	@Column("delete_flag")
	private Integer deleteFlag;

	public int getAllowOneRoomMultiUser() {
		return allowOneRoomMultiUser;
	}

	public void setAllowOneRoomMultiUser(int allowUser) {
		this.allowOneRoomMultiUser = allowUser;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public String getCommunityCode() {
		return communityCode;
	}

	public void setCommunityCode(String communityCode) {
		this.communityCode = communityCode;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public Integer getDeveloperId() {
		return developerId;
	}

	public void setDeveloperId(Integer developerId) {
		this.developerId = developerId;
	}

	public int getBuildingNumber() {
		return buildingNumber;
	}

	public void setBuildingNumber(int buildingNumber) {
		this.buildingNumber = buildingNumber;
	}

	public int getParkingNumber() {
		return parkingNumber;
	}

	public void setParkingNumber(int parkingNumber) {
		this.parkingNumber = parkingNumber;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getAddtime() {
		return addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Integer getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

}
